package com.zsx.shopping.user.service;

import com.zsx.shopping.common.api.user.vo.ReceiveAddressVO;
import com.zsx.shopping.user.entity.ReceiveAddress;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zsx.shopping.user.form.ReceiveAddressForm;

import java.util.List;

/**
 *
 */
public interface ReceiveAddressService extends IService<ReceiveAddress> {

    List<ReceiveAddressVO> getReceiveAddressList();

    void addReceiveAddress(ReceiveAddressForm receiveAddressForm);

    void updateDefaultReceiveAddress(Long receiveAddressId);

    void deleteReceiveAddress(Long receiveAddressId);

    ReceiveAddressVO getReceiveAddress(Long receiveAddressId);

    ReceiveAddressVO getDefaultReceiveAddress(Long userId);
}
